/**
 * 
 */
package cn.dgfy.MyBatisStudy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dgfy.MyBatisStudy.bean.Student;
import cn.dgfy.MyBatisStudy.dao.StudentMapper;

/**
 * @author Tearfalls
 *
 */
@Service
public class StudentService {
	
	@Autowired
	private StudentMapper studentMapper;
	
	public List<Student> get() {
		return studentMapper.get();
	}
	
	public Student getById(Integer id) {
		return studentMapper.getById(id);
	}
}
